package com.coastline.fruit.usercenter.exception;

import com.coastline.fruit.common.exception.CoastlineFruitErrorInfo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author Coastline
 * @date 2025/1/1 18:08
 */
@Getter
@ToString
@AllArgsConstructor
public enum UserCenterErrorInfo implements CoastlineFruitErrorInfo {
    /**
     * 参数长度超长
     */
    PARAM_LENGTH_TOO_LONG("33001004", "The parameter length is too long"),

    /**
     * 缺少必填参数或必填参数为空
     */
    MANDATORY_PARAMS_IS_EMPTY("33001003", "Required parameters are missing or empty"),

    /**
     * 登录账号名称已存在
     */
    LOGIN_ACCOUNT_NAME_ALREADY_EXISTS("33001002", "Login account name already exists"),

    /**
     * 用户名称已存在
     */
    USER_NAME_ALREADY_EXISTS("33001001", "User name already exists"),

    /**
     * 数据库操作异常
     */
    DATABASE_OPERATION_ERROR("33001000", "Database operation error");

    private final String errorCode;

    private final String errorMessage;
}
